<%@page import="bean.Customer"%>
<%@page import="bean.GioHang"%>
<%@page language="java" contentType="text/html; charset=UTF-8"
        pageEncoding="UTF-8" import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Menu trái</title>
            <link href="css/index_style.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <div id="baby_sidebar_top"></div>
        <div id="baby_sidebar">
            <%
                if (session.getAttribute("user_cus") != null) {
                    Customer _customer = (Customer) session.getAttribute("user_cus");
                    out.println("<h5 align=\"center\">Thông tin khách hàng</h5>");
                    out.println("<p align=\"center\">" + _customer.getName() + "</p><br><br>");
                    out.println("<div align='center'>");
                    out.println("<form action='customerLogout.jsp'>");
                    out.println("<input align='center' type=\"submit\" name=\"logout\" value=\"Đăng xuất\" ></input>");
                    out.println("</form>");
                    out.println("</div>");

                } else {%>
            <%@include file="miniLogin.jsp" %>
            <%}
                if (session.getAttribute("cart") != null) {
                    GioHang gioHang = (GioHang) session.getAttribute("cart");
                    out.println("<p align=\"center\">Đã mua: " + gioHang.size() + " sp");
                }
            %>
            <h3 align="center">Giỏ hàng</h3>

            <a href="cart.jsp">
                <img src="image/shopping_cart.png" border="0" style="border:none;max-width:100%;" alt="Xem giỏ hàng của bạn!" />
            </a>


            <div class="cleaner_h30"></div>


            <div class="cleaner_h10"></div>

        </div>
        <div id="baby_sidebar_bottom"></div>
    </body>
</html>